Skip to content

Conversation

@rfgamaral
Copy link
Member

Overview

This PR updates the repository's GitHub Actions workflow to use npm's Trusted Publishing feature for package releases. Using Trusted Publishing eliminates the need to store long-lived npm tokens in GitHub secrets, reducing security risks and simplifying credential management. This also standardizes the publishing process across repositories.

Important

The npm organization and repository must be linked and authorized for Trusted Publishing before merging.

What's changing:

  • Replaces manual NPM_TOKEN authentication with GitHub's OpenID Connect (OIDC)–based authentication.
  • Updates the release workflow configuration to align with npm's Trusted Publishers documentation
  • Ensures that package publishing permissions are managed directly through GitHub and npm, improving security and maintainability.

@rfgamaral rfgamaral self-assigned this Nov 18, 2025
@rfgamaral rfgamaral merged commit 0d2b05b into main Nov 18, 2025
3 checks passed
@rfgamaral rfgamaral deleted the ricardo/secure-release-workflow branch November 18, 2025 17:46
@rfgamaral
Copy link
Member Author

Working as expected (successful run):

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants